#!/bin/bash
uname_output=$(uname -s)
case "$uname_output" in
	Darwin*)
	CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o go-companion ./cmd/main/main.go
	#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-companions-task ./cmd/task
	;;

	Linux*)
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main ./main7.go
	# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-companion ./cmd/main/main.go
	#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-companions-task ./cmd/task
	;;
	*)
		echo "Unknown"
		;;
esac
	
chmod +x main
#chmod +x go-companion-task
